#{extends 'frame.html' /} #{set title:'商家对账' /} #{set 'moreStyles'}
<link rel="stylesheet" media="screen"
	href="@{'/public/stylesheets/admin/user-manage.css'}" />
<link rel="stylesheet" media="screen"
	href="@{'/public/stylesheets/jquery.pagination.css'}" />
<link rel="stylesheet" media="screen"
	href="@{'/public/stylesheets/datePicker.css'}" />

#{/set}
<div class="tabbedCard" id="waitingTaskPanel">
	<div class="contentTitle">账单明细</div>
	<div class="tabSwitchWrapper">
		<a class="tab-cell taskTypeTab focus" href="javascript:;" for="buyerTask" >任务明细</a>
	</div>
	<div id="taskFilterPanel">
		<div class="clearfix mb10">
		#{if role=='admin'}
			<span class="floatLeft mr10">商家昵称</span> 
			<input type="text" class="floatLeft mr10 inputText" id="sellerNick" value=""/>
		#{/if}
			 <span class="floatLeft mr10">接手时间</span> <span
				class="floatLeft mr10 cal-date-input"> <input
				class="inputDate start-date" id="beginTakeTime" readonly="readonly"
				value="" />
			</span> <span class="floatLeft mr10 med-cal-split">-</span> <span
				class="floatLeft mr10 cal-date-input"> <input
				class="inputDate end-date" id="endTakeTime" readonly="readonly"
				value="" />
			</span> <a class="stdColorButton floatLeft queryBtn" href="javascript:;"
				id="queryBtn">查询</a>
			<a class="stdColorButton floatLeft queryBtn ml20" href="javascript:;"
				id="expoptBtn" target="id_iframe">导出excel</a>
			<span class="floatLeft">
			<iframe id="iframe" name="id_iframe" style="display:none;height: 30px;" scrolling="no"></iframe>
		</span>
		</div>
	</div>
		
	<div class="mt20 taskTable" id="buyerTask">
		<table class="normTable buyerTaskTable">
			<thead>
				<tr>
					<td>任务编号</td>
					#{if role=='admin'}
					<td>商家昵称</td>
					#{/if}
					<td>接单时间</td>
                    <td>买号</td>
					<td>订单数</td>
					<td>任务状态</td>
					<td>分享佣金（元）</td>
					<td>分销返佣（元）</td>
				</tr>
			</thead>
			<tbody id="blanceContainer"></tbody>
		</table>
		<div id="noMsg">
			<div class="warnBox">
				<span class="iconfont">&#xf00b6;</span> 没有任务!
			</div>
		</div>
		<div class="pagin-btm clearFix" style="display: none;">
			<div class="pagination"></div>
		</div>
		<div class="popWrapper" style="display: none;" id="tr_loading_mask">
			<div class="maskLayer"></div>
			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />
		</div>
	</div>
</div>

<textarea class="muban" id="taskTemp">
	{{#results}}
	<tr data-id="{{taskIdStr}}">
		<td>{{taskIdStr}}</td>
		#{if role=='admin'}
			<td>{{sellerNick}}</td>
		#{/if}
		<td>{{takenTime}}</td>
        <td>{{buyerId}}</td>
		<td>{{orderCount}}</td>
		<td>{{statusTxt}}</td>
		<td>{{baseCommissionStr}}</td>
		<td>{{cashbackStr}}</td>
	</tr>
	{{/results}}
</textarea>
#{set 'moreScripts'}
<script src="@{'/public/javascripts/date.js'}" type="text/javascript"></script>
<script src="@{'/public/javascripts/jquery.datePicker.js'}"
	type="text/javascript"></script>
<script src="@{'/public/javascripts/jquery.pagination.js'}"
	type="text/javascript"></script>
<script src="@{'/public/javascripts/mustache.min.js'}"
	type="text/javascript"></script>
<script src="@{'/public/javascripts/jquery.number.min.js'}"
	type="text/javascript"></script>
<script src="@{'/public/javascripts/task/seller-wd-blance.js'}"
	type="text/javascript"></script>
<script type="text/javascript">
	App.module = 'sellerWdBlance';
</script>
#{/set}
